<template>
  <div class="login-page center">
    <div class="main-body flex">
      <div class="login-site-bg text-white" style="padding: 120px 0 0 70px; font-size: 25px">
        <div>欢迎进入</div>
        <div>后台管理平台</div>
      </div>
      <div class="flex-1 login-form">
        <n-tabs v-model:activeKey="activeKey" size="large">
          <n-tab-pane :name="1" tab="帐号密码登录">
            <LoginForm />
          </n-tab-pane>
        </n-tabs>
      </div>
    </div>

    <!-- <a-row class="main-body">
      <a-col flex="350px" class="login-site-bg text-white">
        <div style="padding: 120px 0 0 70px; font-size: 25px">
          <div>欢迎进入</div>
          <div>后台管理平台</div>
        </div>
      </a-col>
      <a-col flex="auto" class="login-form">
        <a-tabs v-model:activeKey="activeKey">
          <a-tab-pane :key="1">
            <template #tab>
              <div style="font-size: large">帐号密码登录</div>
            </template>
            <LoginForm />
          </a-tab-pane>
        </a-tabs>
      </a-col>
    </a-row> -->
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import LoginForm from './LoginForm.vue'

export default defineComponent({
  name: 'Login',
  components: {
    LoginForm
  },
  setup() {
    return {
      activeKey: ref(1)
    }
  }
})
</script>

<style lang="less" scoped>
.login-page {
  background: url('@/assets/images/login/bg.png') no-repeat;
  background-size: cover;
  width: 100vw;
  min-width: 1000px;
  min-height: 700px;
  height: 100vh;
}
.main-body {
  width: 920px;
  height: 600px;
  overflow: hidden;
  border-radius: 10px;
  .login-site-bg {
    background: url('@/assets/images/login/login-site-bg.png') no-repeat;
    background-size: cover;
    letter-spacing: 9px;
  }
  .login-form {
    background-color: #fff;
    padding: 80px 50px 0;
  }
}
</style>
